package com.azt.front.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 登录cookie,格式 userId|username|currentRoleId|salt|登录时间|过期时间
 * Created by shangwq on 2016/12/13.
 */
public class LoginCookie implements Serializable {

    private Integer userId;

    private String username;

    private Integer currentRoleId;

    private String salt;

    private Date loginTime;

    private Date expireTime;

    public LoginCookie() {
    }

    public LoginCookie(Integer userId, String username, Integer currentRoleId, String salt, Date loginTime, Date expireTime) {
        this.userId = userId;
        this.username = username;
        this.currentRoleId = currentRoleId;
        this.salt = salt;
        this.loginTime = loginTime;
        this.expireTime = expireTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getCurrentRoleId() {
        return currentRoleId;
    }

    public void setCurrentRoleId(Integer currentRoleId) {
        this.currentRoleId = currentRoleId;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }
}
